package com.digua.frame.plugin.service;

import org.apache.skywalking.apm.agent.core.boot.OverrideImplementor;
import org.apache.skywalking.apm.agent.core.context.AbstractTracerContext;
import org.apache.skywalking.apm.agent.core.context.ContextManagerExtendService;

/**
 * @description:
 * @author: wangzhilong
 * @date: 2021/10/20
 **/
@OverrideImplementor(ContextManagerExtendService.class)
public class ContextManagerExtendServiceExtension extends ContextManagerExtendService {

    @Override
    public AbstractTracerContext createTraceContext(String operationName, boolean forceSampling) {
        forceSampling = true;
        return super.createTraceContext(operationName, forceSampling);
    }
}
